/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.uc.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.uc.domain.po.SignaturePO;
import com.xy.biz.uc.domain.query.SignatureQuery;

/**
 *
 *
 * @author yzh
 * @date 2021-2-22
 */
public interface SignatureDao {

	/**
	 * 保存
	 *
	 * @param signaturePO
	 */
	int saveSignature(SignaturePO signaturePO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllSignature(Collection<SignaturePO> collection);

	/**
	 * 更新
	 *
	 * @param signaturePO
	 */
	int updateSignature(SignaturePO signaturePO);

	/**
	 * 删除
	 *
	 * @param signatureId
	 */
	int deleteSignature(Long signatureId);

	/**
	 * 查找一个
	 *
	 * @param signatureId
	 * @return
	 */
	SignaturePO getSignature(Long signatureId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<SignaturePO> listSignatureById(Collection<Long> collection);
	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<SignaturePO> listSignatureByUserId(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<SignaturePO> listSignature(SignatureQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countSignature(SignatureQuery query);

}
